package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    /**
     * 完成文章和素材之间的批量关系添加
     * @param id
     * @param ids
     * @param type
     */
    void saveRelationInfo(@Param("wmNewsId") Integer id,
                          @Param("ids") List<Integer> ids,
                          @Param("type") Short type);
}
